import Vue from "vue";
import App from "./App.vue";

Vue.config.productionTip = false;

// 全局指令
/* Vue.directive("color", {
  inserted(element, binding) {
    element.style.color = binding.value;
  },
}); */
Vue.directive("color", (element, binding) => {
  element.style.color = binding.value;
});

new Vue({
  render: (h) => h(App),
}).$mount("#app");
